@layout("/common/_container.html",{js:["/assets/modular/activiti/process/process_monitor.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">流程监控</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="processName" class="layui-input" type="text" placeholder="流程名称" autocomplete="off"/>
                            </div>
                            <div class="layui-inline">
                                <input id="applyUserId" class="layui-input" type="text" placeholder="发起人" autocomplete="off"/>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="monitorTable" lay-filter="monitorTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">

    @if(shiro.hasPermission("/task/viewTaskDetail")){
    <a class="layui-btn layui-btn-xs" lay-event="view">查看</a>
    @}
    {{#  if(d.processStatus == 0){ }}
        @if(shiro.hasPermission("/task/suspend")){
        <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="suspend">挂起</a>
        @}
        @if(shiro.hasPermission("/task/changeAssignee")){
        <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="changeAssignee">转办</a>
        @}
    {{# } }}
    {{#  if(d.processStatus == 1){ }}
        @if(shiro.hasPermission("/task/active")){
        <a class="layui-btn layui-btn-xs layui-btn-warm" lay-event="active">激活</a>
        @}
    {{# } }}

</script>

@}